﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="HeadHunter.aspx.cs" Inherits="CV_Projekt.FormHeadHunter" %>
<%@ Import Namespace="System.Activities.Statements" %>
<%@ Import Namespace="DBModel" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MenuContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <link href="StyleSheets/Headhunter.css" rel="stylesheet" />
    <asp:Label ID="LabelFreeText" runat="server" Text="Label">Sök på valfria ord </asp:Label>
    <asp:TextBox ID="TextBoxFreeText" runat="server"></asp:TextBox>
    <asp:Button ID="ButtonFreeTextSearch" runat="server" Text="Sök" OnClick="ButtonFreeTextSearch_Click" />
    <br />
    <asp:Label ID="LabelSkillSearch" runat="server" Text="Label">Sök efter kompetens</asp:Label>
    <asp:TextBox ID="TextBoxSkillSearch" runat="server"></asp:TextBox>
    <asp:Button ID="ButtonSkillSearch" runat="server" Text="Sök" OnClick="ButtonSkillSearch_Click" />
    <br />
    <asp:Label ID="LabelLanguageSearch" runat="server" Text="Label">Sök efter språk</asp:Label>
    <asp:TextBox ID="TextBoxLanguageSearch" runat="server"></asp:TextBox>
    <asp:Button ID="ButtonLanguageSearch" runat="server" Text="Sök" OnClick="ButtonLanguageSearch_Click" />
    <br />
    <asp:ListView ID="ListViewCVSearchResult" runat="server">
        <ItemTemplate>
            <tr style="background-color:#DCDCDC;color: #000000;">
                <td>
                    <asp:Label ID="Name" runat="server" Text='<%# string.Format("{0}, {1}", Eval("Applicant.FirstName"), Eval("Applicant.LastName")) %>' />
                    
                </td>
                <td><input type="checkbox" id="CheckBoxCvId" value='<%# Eval("CvId") %>' runat="server" /></td>
            </tr>
        </ItemTemplate>
        <LayoutTemplate>
            <table runat="server">
                <tr runat="server">
                    <td runat="server">
                        <table id="itemPlaceholderContainer" runat="server" border="1" style="background-color: #FFFFFF;border-collapse: collapse;border-color: #999999;border-style:none;border-width:1px;font-family: Verdana, Arial, Helvetica, sans-serif;">
                            <tr runat="server" style="background-color:#DCDCDC;color: #000000;">
                                <th runat="server">Namn</th>
                                <th runat="server">Välj</th>
                            </tr>
                            <tr id="itemPlaceholder" runat="server">
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr runat="server">
                    <td runat="server" style="text-align: center;background-color: #CCCCCC;font-family: Verdana, Arial, Helvetica, sans-serif;color: #000000;"></td>
                </tr>
            </table>
        </LayoutTemplate>
    </asp:ListView>

    
    <br />

    
    <asp:Button ID="ButtonShowSelectedCV" runat="server" Text="Visa CV:n" OnClick="ButtonShowSelectedCV_Click" />
 
    
    <br />

    <asp:ListView ID="ListViewCVPresentation" runat="server" >
        <ItemTemplate>
            <div class="col-3">
                <p>Namn: <%# Eval("Applicant.FirstName") %></p>
                <%# Eval("Presentation") %>
            </div>
        </ItemTemplate>
        <LayoutTemplate>
          <div id="itemPlaceholderContainer" runat="server" class="row">
             <div id="itemPlaceholder" runat="server" class="col-3">
             </div>
          </div>
            <div class="clearfloat"></div>
        </LayoutTemplate>
    </asp:ListView>
    
    <asp:ListView ID="ListViewCVEducations" runat="server" >
        <ItemTemplate>
            <div class="col-3">
                <%# ((CurriculumVitae)Container.DataItem).PrintEducations() %>
            </div>
        </ItemTemplate>
        <LayoutTemplate>
          <div id="itemPlaceholderContainer" runat="server" class="row">
             <div id="itemPlaceholder" runat="server" class="col-3">
             </div>
          </div>
            <div class="clearfloat"></div>
        </LayoutTemplate>
    </asp:ListView>
    
    <asp:ListView ID="ListViewCVEmployments" runat="server" >
        <ItemTemplate>
            <div class="col-3">
           <%# ((CurriculumVitae)Container.DataItem).PrintEmployments() %>
            </div>
        </ItemTemplate>
        <LayoutTemplate>
          <div id="itemPlaceholderContainer" runat="server" class="row">
             <div id="itemPlaceholder" runat="server" class="col-3">
             </div>
          </div>
            <div class="clearfloat"></div>
        </LayoutTemplate>
    </asp:ListView>
    
    <asp:ListView ID="ListViewCVSkills" runat="server" >
        <ItemTemplate>
            <div class="col-3">
            <%# ((CurriculumVitae)Container.DataItem).PrintSkills() %>
            </div>
        </ItemTemplate>
        <LayoutTemplate>
          <div id="itemPlaceholderContainer" runat="server" class="row">
             <div id="itemPlaceholder" runat="server" class="col-3">
             </div>
          </div>
            <div class="clearfloat"></div>
        </LayoutTemplate>
    </asp:ListView>
    
    <asp:ListView ID="ListViewCVOtherQualifications" runat="server" >
        <ItemTemplate>
           <div class="col-3">
           <%# ((CurriculumVitae)Container.DataItem).PrintOtherQualifications() %>
            </div>
        </ItemTemplate>
        <LayoutTemplate>
          <div id="itemPlaceholderContainer" runat="server" class="row">
             <div id="itemPlaceholder" runat="server" class="col-3">
             </div>
          </div>
            <div class="clearfloat"></div>
        </LayoutTemplate>
    </asp:ListView>
    
    <asp:ListView ID="ListViewCVLanguages" runat="server" >
        <ItemTemplate>
            <div class="col-3">
           <%# ((CurriculumVitae)Container.DataItem).PrintLanguages() %>
            </div>
        </ItemTemplate>
        <LayoutTemplate>
          <div id="itemPlaceholderContainer" runat="server" class="row">
             <div id="itemPlaceholder" runat="server" >
             </div>
          </div>
            <div class="clearfloat"></div>
        </LayoutTemplate>
    </asp:ListView>

    
</asp:Content>
